<!DOCTYPE html>
<html>
    <head>
        <meta charset = "UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Load CSS Libraries -->
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("public/css/bootstrap.min.css"); ?>">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("public/css/application.css"); ?>">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("public/css/myCSS.css"); ?>">
        <!-- Load JavaScript Libraries -->
        <script type="text/javascript" src="<?php echo base_url("public/js/jquery/jquery-2.1.0.min.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/jquery/jquery.min.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/jquery/jquery.widget.min.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/bootstrap.min.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/docs.min.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/myScript.js"); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url("public/js/BacktoTopJs.js"); ?>"></script>

        <script type="text/javascript" src="<?php echo base_url("public/js/application.js"); ?>"></script>
        <title>Map Center</title>
    </head>
    <body>
        <!-- Begin of header -->
        <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand logo" href="<?php echo base_url("index.php/website/home"); ?>"><img src="<?php echo base_url("public/images/logo.png"); ?>" alt="logo_image" width="100px" height = "50px"></a>
                </div>
                <div class="collapse navbar-collapse">
                    <form class="navbar-form navbar-left">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search..." name="srch-term" id="srch-term">
                            <div class="input-group-btn">
                                <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
                            </div>
                        </div>
                    </form>
                    <ul class="nav navbar-nav" id="dropdown">
                         <?php
                            echo $this->load->view('frontend/thanhvien/self_registration_view');
                        ?>       
                        <button id="edit" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Cập nhật</button>
                        <li class="active"><a href="<?php echo base_url("index.php/website/home"); ?>"><span class="glyphicon glyphicon-home nav-icon"></span>Home</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Trung Tâm</a>
                            <ul class="dropdown-menu" role="menu">
                                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" >Trẻ Em</a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href='#'><span>Trẻ em 1</span></a></li>
                                        <li class="last"><a href='#'><span>Trẻ em 2</span></a></li>
                                    </ul>
                                </li>
                                <li><a href="#">Người Già</a></li>
                                <li class="last"><a href="#">Người Khuyết Tật</a></li>
                            </ul>
                        </li>
                        <li><a href="<?php echo base_url("index.php/website/article"); ?>">Tin Tức</a></li>
                        <li><a href="<?php echo base_url("index.php/website/article"); ?>">Hoat Dong</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Nhà Tài trợ</a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Trẻ Em</a></li>
                                <li><a href="#">Người Già</a></li>
                                <li class="last"><a href="#">Người Khuyết Tật</a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <?php
                            $sess = $this->session->userdata('logged_in');
                            if ($sess['sign_in'] == TRUE) {
                                echo anchor('website/home', 'Profile', array('class' => 'dropdown-toggle',
                                    'data-toggle' => 'dropdown'));
                                ?>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php
                                        echo anchor('website/thanhvien/loadProfile/' . $sess['id'], 'Cập nhật thông tin');
                                        ?>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <?php echo anchor('website/thanhvien/registration/logout', 'Log out'); ?>
                                    </li>
                                </ul>

                            </li>
                            <?php
                        } else {
                            ?>
                            <li>
                                <?php
                                echo anchor('website/thanhvien/registration/load_login', 'Login');
                                ?>
                            </li>
                            <li style="color: #ffffff; margin-top: 13px;"> | </li>
                            <li>
                                <?php
                                echo anchor('website/thanhvien/registration', 'Register');
                                ?>
                            </li>
                            
                            <?php
                        }
                        ?>
<!--                            <li><a href="<?php echo base_url("index.php/website/thanhvien/registration/login"); ?>"> Login  </a></li>
                            <li style="color: #ffffff; margin-top: 13px;"> | </li>
                            <li><a href="<?php echo base_url("index.php/website/thanhvien/registration"); ?>"> Register </a> </li>-->
                    </ul>
                </div><!-- /.nav-collapse -->
            </div><!-- /.container -->
        </div><!-- /.navbar -->
        <!-- End of header -->
        <!-- Begin of content -->
        <!-- Go to www.addthis.com/dashboard to customize your tools -->
        <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-53d52589033e8e5b"></script>

        <div class="container custom-container">